package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.merchant.MerchantCategory;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.MerchantGeneralType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.MerchantGeneralTypeSaveRequest;
import com.zbkj.common.request.MerchantGeneralTypeSearchRequest;
import com.zbkj.common.response.MerchantGeneralTypeFrontListResponse;
import com.zbkj.common.response.MerchantGeneralTypeListResponse;
import com.zbkj.common.response.MerchantGeneralTypePageDataResponse;
import com.zbkj.common.response.MerchantGeneralTypeDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description MerchantGeneralTypeService 接口
* @date 2025-08-13
*/
public interface MerchantGeneralTypeService extends IService<MerchantGeneralType> {

    Boolean create(MerchantGeneralTypeSaveRequest merchantGeneralTypeSaveRequest);

    /**
     * 分页查询商户联盟类型表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    PageInfo<MerchantGeneralTypePageDataResponse> getList(MerchantGeneralTypeSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改商户联盟类型表
    * @param merchantGeneralTypeRequest
    * @return
    */
    boolean update(MerchantGeneralTypeSaveRequest merchantGeneralTypeRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    MerchantGeneralTypeDetailResponse getDetails(Integer id);

    List<MerchantGeneralTypeListResponse> getPlatformList();

    List<MerchantGeneralTypeFrontListResponse> allListH5();
    List<MerchantGeneralTypeFrontListResponse> allListBrand();

    List<MerchantGeneralType> getListByIds(List<Integer> ids);
}